#!/usr/bin/env python3
# -*-coding:utf-8 -*-
# __author__=LuLu

import os
import pytest
from comment.Tools import get_dirabspath

# 项目根目录
root_directory = rf'{get_dirabspath()}'

# 测试报告文件夹名称
filename = 'e-travel-report'  # + time.strftime("%Y-%m-%d_%H_%M_%S")

if __name__ == '__main__':
    """
    # 参数依赖pytest.ini文件进行运行
    """
    pytest.main()
    # os.system(r"copy {get_dirabspath()}\testConfig\environment.properties  {get_dirabspath(
    # )}\report\result\environment.properties")
    os.system(rf"{get_dirabspath()}\venv\Lib\site-packages\allure-2.13.2\bin\allure.bat "
              r"generate "
              rf"{get_dirabspath()}\report\result "
              rf"-o {get_dirabspath()}\report\allure\{filename} "
              r"--clean")
    # os.system(r"copy {get_dirabspath()}\testConfig\environment.properties  {get_dirabspath()}\report\result\environment.properties")
